<template>
   <div class="bill-item">
     <div class="my-wraper">
        <my-text v-if="data.currency" day_color="rgba(70,120,245,1)" night_color="rgba(184,111,36,1)" :text="data.currency" style="font-size:30px;"></my-text>
        <text style="font-size:30px;color:rgba(60,71,98,1);">{{get_type(data.tradeType)}}</text>
     </div>
    <div class="bill-item-wrapper">
      <div class="bill-item-cell">
        <text style="font-size:24px;color:rgba(154,156,164,1);margin-bottom:20px;">数量</text>
        <text style="font-size:30px;color:rgba(60,71,98,1);">{{data.amount}}</text>
      </div>
      <div class="bill-item-cell">
        <text style="font-size:24px;color:rgba(154,156,164,1);margin-bottom:20px;">状态</text>
        <text style="font-size:30px;color:rgba(60,71,98,1);">{{data.status === 0 ? '未完成':'已完成'}}</text>
      </div>
      <div class="bill-item-cell">
        <text style="font-size:24px;color:rgba(154,156,164,1);margin-bottom:20px;text-align: right;">时间</text>
        <text style="font-size:30px;color:rgba(60,71,98,1);">{{data.tradeTime}}</text>
      </div>
    </div>
    <div class="bottom-line"></div>
  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {
    }
  },
  props:{
    data:{
      default:_ => {return {}}
    }
  },
  methods: {
    get_type(t){
      const types = ['转入','转出','其它','合约']
      return types[t]
    }
  }
}
</script>
<style scoped>
.bill-item{
  margin-top: 38px;
  /* background-color: aqua; */
  /* padding-bottom: 24px; */
  /* background-color: aqua; */
}
.bill-item-wrapper{
  padding-top: 34px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 34px;
}
.bottom-line{
  position: absolute;
  bottom: 0;
  width: 690px;
  height: 1px;
  background-color: rgb(233,233,233);
}
  .my-wraper{
  width: 690px;
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
</style>